package com.globallogic.university;

/**
 *
 */
public class Student {
	private int id;
	private String fullName;
	private StudentsGroup group;

    public Student(String fullName, StudentsGroup group) {
        this.fullName = fullName;
        this.group = group;
    }

    public String getFullName() {
		return this.fullName;
	}

	public StudentsGroup getGroup() {
		return this.group;
	}

	/**
	 * Set group for current user
	 * @param group
	 */
	protected void setGroup(StudentsGroup group) {
		this.group = group;
	}

	public String getSpeciality() {
		return this.group.getSpeciality();
	}

	public int getStudyYear() {
        return this.group.getYearStudy();
	}

}